{% extends "homepage\base_generic.html" %}

{% block content %}
    
<br>
    <p> Welcome to the Cost Calculator. Below you have options for adding new trips, updating your expenses, and signing off expenses from others.</p>
    <p>
    Actions:
    </p>
    <a href="/CostCalc/CreateTrip/">Create a new trip</a>
    
    
<br><br><br><br>
{% if  Events%}
    <p>View the details of an open trip:</p>
        <table>
    {% for Event in Events %}
        <tr><td><a href="/CostCalc/{{ Event.id }}/TripHomepage">{{ Event.eventName }}</a></td><td> (You owe: {{x)</td></tr>
    {% endfor %}</table>
{% else %}
    <p>No Trips are available.</p>
{% endif %}
{% endblock content %}


